<h2><?php if($this->empty) {echo $this->translate( 'academy_header' );} else {echo nl2br( $this->item['title_' . $this->locale] ); } ?></h2>
<div class="content">

	<?php if(!$this->empty){?>
	
	<?php if($this->item['graph'] == 1) {?>
	
	<div class="boximages">
				<div style="float: left;display: inline;margin-right: 20px;"><img src="<?php echo $this->File( $this->item['Galeries']['Photos'], 255 ) ?>" /></div>
	</div>
	<?php } if($this->item['graph'] == 2) {?>
	<script type="text/javascript">
	<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
	var swfVersionStr = "10.0.0";
	<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
	var xiSwfUrlStr = "playerProductInstall.swf";
	var flashvars = {};
	flashvars.xml_path = "<?php echo $this->baseUrl(); ?>/index/putter/id/<?php echo $this->item['galeries_g_id'] ?>";
	var params = {};
	params.quality = "high";
	params.bgcolor = "#000000";
	params.allowscriptaccess = "sameDomain";
	params.allowfullscreen = "true";
	var attributes = {};
	attributes.id = "Carnauba_Miotacz";
	attributes.name = "Carnauba_Miotacz";
	attributes.align = "middle";
	swfobject.embedSWF(
	"<?php echo $this->baseUrl(); ?>/public/swf/Carnauba_Miotacz04.swf", "puttercontent", 
	"300", "200", 
	swfVersionStr, xiSwfUrlStr, 
	flashvars, params, attributes);
	<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
	swfobject.createCSS("#puttercontent", "display:block;width:300px;height:200px;");
	</script>
	
	<div style="float: left;display: inline;margin-right: 20px;"><div id="puttercontent"></div></div>
	<?php }?>
		
		
	<?php echo nl2br( $this->item['lead_' . $this->locale] )?> 
		
	<div class="clr"></div>
	
	
</div>
<?php } else { echo "Brak tekstu!"; ?> </div><?php }?> 
<h2 class="hgreen mtop5 bold"><?php echo $this->translate( 'academy_newest' ) ?></h2>
<div class="content">
<?php $i = 0; foreach( $this->listacademy as $value ) {  $i++; ?>
	<?php 
	 if($i==1) $style = ' style=" margin-left:0" ';
	 if($i==2) $style = ' style=" margin-left:35px " ';
	 if($i==3) $style = ' style=" float:right " ';
	 
	?>
	<div class="boxarticle" <?php echo $style; ?>>
		<div class="imageover">
			<div class="image" style="background:url( <?php echo $this->File( $value['Galeries']['Photos']->toArray(), 170 ) ?> ) center center no-repeat;"></div>
		</div>
		<div class="name"><a href="<?php echo $this->baseUrl() ?>/academy/article/id/<?php echo $value['news_id'] ?>/<?php echo $this->Seo( $value['title_' . $this->locale] ) ?>"><?php echo $value['title_' . $this->locale] ?> <span>&raquo;</span></a></div>
	
    	<?php if($i<3) { ?>
    	<div class="boxarticleborder"></div>
    	<?php } ?>
	
	</div>

<?php } ?>
	<div class="clr"></div>
</div>